package com.big.app.controller;


import com.big.app.service.intf.ContentService;
import com.big.app.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zjl
 * @description
 * @date: 2022/4/22 18:54
 */
@RestController
@RequestMapping("/api/content/")
@Api(value = "实现评论相关操作",tags = "实现评论相关操作")
@CrossOrigin
public class ContentController {
    @Autowired
    private ContentService contentService;
    @GetMapping("all.do")
    public R all(Integer mid){return contentService.All(mid);}
    @GetMapping("insert.do")
    public R insert(String content,Integer mid){return contentService.insert(content,mid);}
}
